#!/usr/bin/env python3

class Student:
    def __init__(self, name, age):
        self.name = name
        self.age = age

    def __len__(self):
        return self.age

    def __str__(self):
        return "当print打印对象时的字符串"

    def __int__(self):
        return self.age

def main():
    s = Student("张三", 10)
    print(s, len(s), int(s))


if __name__ == "__main__":
    main()
